package com.wuxiaoqin.admin.service;

import com.wuxiaoqin.admin.entity.Goodsstock;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wuxiaoqin.admin.entity.goodParam.GoodsstockUpdate;
import com.wuxiaoqin.uitls.respObj.RespBean;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-11-08
 */
public interface IGoodsstockService extends IService<Goodsstock> {

    RespBean getGoodsStock(Integer goodsId);

    RespBean updateGoodsStock(GoodsstockUpdate goodsstockUpdate);

    RespBean addOrSubtractStock(Integer goodsId, Boolean addOrSubtract, String size, Integer sum);
}
